import { createWebHistory, createRouter } from "vue-router";
import home from "../views/home.vue";

const routes = [
  { path: "/", component: home },
  { path: "/system/:page*", component: () => import("../views/system.vue") },
  { path: "/pm/:page*", component: () => import("../views/pm.vue") },
  { path: "/test/:page*", component: () => import("../views/test.vue") },
];

const router = createRouter({
  history: createWebHistory("/main/"),
  routes,
});

export default router;
